import env from './env';

// WebSocket connection configuration
export const wsConfig = {
  baseUrl: env.wsBaseUrl,
  reconnectInterval: 3000,
  maxReconnectAttempts: 5
};

// WebSocket event types
export const wsEvents = {
  CONNECT: 'connect',
  DISCONNECT: 'disconnect',
  ERROR: 'error',
  NEW_MESSAGE: 'new_message',
  TYPING_START: 'typing_start',
  TYPING_END: 'typing_end',
  MESSAGE_DELIVERED: 'message_delivered',
  MESSAGE_READ: 'message_read',
  CHAT_HISTORY: 'chat_history',
  MESSAGE_RECEIVED: 'message_received',
  MESSAGE_ANALYZING: 'message_analyzing',
  MESSAGE_PLANNING: 'message_planning',
  MESSAGE_EXECUTING: 'message_executing',
  MESSAGE_RESPONDING: 'message_responding',
  MESSAGE_COMPLETED: 'message_completed'
};

// WebSocket connection status
export const wsStatus = {
  CONNECTING: 'connecting',
  CONNECTED: 'connected',
  DISCONNECTED: 'disconnected',
  RECONNECTING: 'reconnecting',
  FAILED: 'failed'
}; 